package ru.ifmo.sound.neuro;

import java.util.ArrayList;
import java.util.List;

/**
 * @author avhaliullin
 */
public class Neuron {
    public List<WeightedNeuron> prevLayer = new ArrayList<WeightedNeuron>();

    Double y = null;
    Double e = null;
    Double d = 0d;

    public void reset() {
        e = null;
        y = null;
        d = 0d;
    }

    public class WeightedNeuron {
        public WeightedNeuron(Neuron neuron, double weight) {
            this.neuron = neuron;
            this.weight = weight;
        }

        Neuron neuron;
        double weight;
    }
}
